package org.agile4j.patterns.prototype.order;

public class OrderClient {
	public static void main(String[] args) {
		PersonalOrder order = new PersonalOrder() ;
		order.setCustomerName("hyx");
		order.setOrderProductNum(3300);
		order.setProductId("10101688");
		
		OrderBusiness ob = new OrderBusiness() ;
		ob.saveOrder(order);
		
		
		System.out.println("first: "+order.getOrderProductNum());
		
		PersonalOrder order2 = (PersonalOrder)order.clone() ;
		order2.setOrderProductNum(80);
		System.out.println("clone : "+order2.getOrderProductNum());
		
		System.out.println("first: "+order.getOrderProductNum());
		
	}
}
